﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lazy02
{
    class Program2
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数：");
           
            double O = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine("请输入第二个数：");

            double T = Convert.ToDouble(Console.ReadLine());

            Console.WriteLine("请输入第三个数：");

            double S = Convert.ToDouble(Console.ReadLine());

            if (O > T) {
                if (O>S)
                {
                    Console.WriteLine(O);
                }
                else
                {
                    Console.WriteLine(S);
                }
            }
            else
            {
                if (T > S)
                {
                    Console.WriteLine(T);
                }
                else
                {
                    Console.WriteLine(S);
                }
            }
            Console.ReadKey();
        }
    }
}
